﻿#ifndef REPORTFORM_H
#define REPORTFORM_H
#pragma execution_character_set("utf-8")
#include <QObject>
#include <string>
using namespace std;
class ReportForm:public QObject{
    Q_OBJECT
public:
    explicit ReportForm(QObject *parent = 0);
    Q_INVOKABLE void report();
    QVector<QString> getGasData(string dataname);
    void setMode(int mode);
    Q_INVOKABLE void setFormMode(int mode);
    Q_INVOKABLE void setRange(int range);
    Q_INVOKABLE void setYearTime(int year);
    Q_INVOKABLE void setMonthTime(int year,int month);
    Q_INVOKABLE void setDayTime(QString time);
    Q_INVOKABLE void setMinuteTime(QString day,int hour);
private:
    string tablename;
    int timerange;
    string StartTime;
    int m_mode;
};

#endif // REPORTFORM_H
